import Vue from "vue";
import VueRouter from "vue-router";
import index from "../views/index";
Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    redirect:"/index",
    
  },
  {
    path:'/index',
    name:'index',
    component: index
  },
  {
    path: "/front",
    name: "front",
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () =>
      import(/* webpackChunkName: "about" */ "@/components/header/nav.vue"),
  },
];

const router = new VueRouter({
  routes,
});

export default router;
